package edu.sctu.zhangwang.month201505.day20150517.TwoText;

/**
 * Created by user10 on 2015/5/17.
 */
public class TextOne extends TextMore{

//    Student[] studentcode1 = new Student[teaChers[1].student.length];
//    Student[] studentcode2 = new Student[6];

    public TextOne(TeaCher[] teaChers) {
        super(teaChers);
    }
    public TextOne(Student[] studentL){ super(studentL); }

    public void getTercherInfo(){

        sotrNumber();
        System.out.println("编号排序为："+teaChers[0].number + ":" + teaChers[1].number);
        System.out.println("\t\t\t*******排序后老师的信息*******");

        for (int i=0;i<teaChers.length;i++){
            System.out.println("老师编号："+teaChers[i].number+"\t姓名："+teaChers[i].name+"\t职称："+teaChers[i].teaTile+"\t性别："+teaChers[i].sex+"\t所授课程："+teaChers[i].course);
        }
    }
    public Student[] getStudent(int code,Student[] student){
        Student[] studentcode = new Student[student.length];
        sortStudent(student);
        System.out.println("\n教授学生中成绩大于code的学生信息：");
        for(int i =0;i<student.length;i++){
            if(student[i].score>code){
                studentcode[i] = student[i];
                System.out.println("学生姓名：" + studentcode[i].name + "\t学生学号：" + studentcode[i].number + "\t学生成绩：" + studentcode[i].score + "\t学生年龄：" + studentcode[i].age + "\t学生性别：" + studentcode[i].sex);

            }


        }
            return studentcode;

    }
//    public Student[] getCode(){
//        TeaCher teacher = pritCoded();
//        Student[] studentnumbers  = interFace.adt(teacher.student);
//
//        return studentnumbers;
//
//    }
//    JudgeStudent interFace = new JudgeStudent() {
//        @Override
//        public Student[] adt(Student[] student) {
//            Student[] studentnumber =  getStudent(60,student);
//            return studentnumber;
//        }
//    };
    public void getCourse(){
        int size = 1;String Wu = null;
//        StringOne[] course = {"物理","数学","语文","计算机"};
        String[] wuli = new String[size];

        String[] shuxue = new String[size];
        String[] yuwen = new String[size];
        String[] jisuanji = new String[size];

        for (int i = 0;i<3;i++){
            if (students[i].textCourse[i].equals("物理")){
                Wu = "好人";
            }

        }
        System.out.println(Wu);
    }
}
